@extends('layouts.admin')
@section('content')
						<div id="content-header">
				<h1>权限管理</h1>
				<div class="btn-group">
					<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
					<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
				</div>
			</div>
			<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>用户列表</a>
				<a href="#" class="current">用户详情</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">						
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
								<span class="label label-info">添加权限</span>
							</div>
							<div class="widget-content nopadding">
								@if(count($errors)>0)
									<div class="mark">
										@if(is_object($errors))
											@foreach($errors->all() as $error)
												<p>{{$error}}</p>
											@endforeach
										@else
											<p>{{$errors}}</p>
										@endif
									</div>
								@endif
							</div>
							<div class="widget-content">
								
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
								<h5>Text inputs</h5>
							</div>
							<div class="widget-content nopadding">
								<form action="{{asset('admin/rule')}}" method="post" class="form-horizontal" style="margin:0 auto">
								{{csrf_field()}}
									<div class="control-group"  style="width:500px;margin:0 auto">
										<label class="control-label">所属权限组：</label>
										<div class="controls">
											<select name="pid">
												<option value="0">顶级权限</option>
												@foreach($display as $display)
													<option value="{{$display->id}}">{{$display->display_name}}</option>
												@endforeach
											</select>
										</div>
									</div>
									<div class="control-group"  style="width:500px;margin:0 auto">
										<label class="control-label">权限路由：</label>
										<div class="controls">
											<input type="text" name="name">
										</div>
									</div>
									<div class="control-group"  style="width:500px;margin:0 auto">
										<label class="control-label">权限名称：</label>
										<div class="controls">
											<input type="text" name="display_name">
										</div>
									</div>
									<div class="control-group"  style="width:500px;margin:0 auto">
										<label class="control-label">权限描述：</label>
										<div class="controls">
											<textarea name="description" id="" cols="30" rows="10"></textarea>
										</div>
									</div>
									<div class="control-group"  style="width:500px;margin:0 auto">
									<label class="control-label">排序:</label>
									<div class="controls">
										<input type="text" name="order" value="" style="width:70px"/>
									</div>
									</div>
									<div class="form-actions"  style="width:500px;margin:0 auto">
										<input type="submit" value="提交">
										<input type="button" class="back" onclick="history.go(-1)" value="返回">
									</div>
								</form>
							</div>
						</div>						
					</div>
				</div>
							</div>
						</div>
						
					</div>
				</div>
				<div class="row-fluid">
					<div id="footer" class="span12">
						2012 &copy; Unicorn Admin. Brought to you by <a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
					</div>
				</div>
			</div>
@endsection